/*
 * DateTest.java
 *
 * This program demonstrates the use of Date class.
 *
 
 */

package com.javacore.day3.booking;

/**
 * This class uses the Date class and its members.
 *
 * @author
 */

public class DateTest {
    
    /** Creates a new instance of DateTest */
    public DateTest() {
    }
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        // Creating an object of Date class
        Date dateOfFlight = new Date();
        
        System.out.println("\nDefault values of instance variables of Date instance:");
        
        System.out.printf("day = %02d\t\t", dateOfFlight.day);
        System.out.printf("month = %02d\t\t", dateOfFlight.month);
        System.out.println("year = " + dateOfFlight.year);
        
        // Initialize the instance variables
        dateOfFlight.day = 03;
        dateOfFlight.month = 10;
        dateOfFlight.year = 2006;
        
        System.out.println("\nNew values of instance variables of Date instance:");
        
        System.out.printf("day = %02d\t\t", dateOfFlight.day);
        System.out.printf("month = %02d\t\t", dateOfFlight.month);
        System.out.println("year = " + dateOfFlight.year);
    }
    
}
